//
//  MainTabBarController.swift
//  WeiLive
//
//  Created by 王力 on 2024/4/13.
//

import UIKit

class MainTabBarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
//        addChild(childName: "Home")
//        addChild(childName: "Live")
//        addChild(childName: "Follow")
//        addChild(childName: "Mine")
    }
    
    private func addChild(childName name:String) {
        let child = UIStoryboard(name: name, bundle: nil).instantiateInitialViewController()
        if let child1 = child {
            addChild(child1)
        }
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
